package com.atguigu.order.client;

import com.atguigu.commonutils.nacosclass.service_edu.CourseOrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(name = "service-edu", fallback = OrderEduDegradeFeignClient.class)
@Component
public interface OrderEduClient {
    @GetMapping("/eduservice/frontCourse/orderInfo/{courseId}")
    public CourseOrderVO orderInfo(@PathVariable String courseId);
}
